package com.shf.controller;

import com.shf.domain.ResponseResult;
import com.shf.service.CategoryService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 叶枫
 * @date 2023/10/26.
 */

@RestController
@RequestMapping("/category/")
@Api(tags = "文章分类列表接口")
public class CategoryController {

    @Autowired
    @Qualifier(value = "categoryService")
    private CategoryService categoryService;

    @GetMapping("getCategoryList")
    public ResponseResult getCategoryList(){
        return categoryService.getCategoryList();

    }
}
